package org.saxonextensions.eml.emitter;

import java.io.OutputStream;
import java.io.IOException;

/**
 * This stream implementation will discard any bytes written
 *
 * @author Ivan Latysh
 * @since 2-Apr-2009 7:09:56 PM
 */
public class DevNullOutputStream extends OutputStream {

  public void write(int b) throws IOException {
    // ignore output
  }

  @Override
  public void write(byte[] b) throws IOException {
    // ignore output
  }

  @Override
  public void write(byte[] b, int off, int len) throws IOException {
    // ignore output
  }

  @Override
  public void flush() throws IOException {
    // does nothing
  }

  @Override
  public void close() throws IOException {
    // does nothing
  }

}
